package com.aidong.carnival.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.aidong.carnival.entity.Talent;
import com.aidong.carnival.entity.Vote;
import com.aidong.carnival.entity.VotedTalent;

public interface TalentService {
	public List<Talent> list(int cid, String type, int page);

	public Talent apply(int carnivalId, int idongId, String type, String[] images, String description);

	public Talent findByIdongId(int carnivalId, int idongId);

	public void vote(Vote vote);

	public int votedCount(int carnivalId, int idongId);
	
	public List<VotedTalent> selectVoted(int carnivalId, int idongId);
}
